﻿function(get_asio_redis path source_files)

    file(GLOB_RECURSE get_files
            ${${path}}/*.h
            ${${path}}/*.cpp)

    #[[    set(hdrs ${path}/config.h
                ${path}/pipeline.h
                ${path}/redisasyncclient.h
                ${path}/redisbuffer.h
                ${path}/redisparser.h
                ${path}/redissyncclient.h
                ${path}/redisvalue.h
                ${path}/version.h
                ${path}/impl/redisclientimpl.h
                ${path}/impl/throwerror.h
                )

        set(srcs ${path}/impl/pipeline.cpp
                ${path}/impl/redisasyncclient.cpp
                ${path}/impl/redisclientimpl.cpp
                ${path}/impl/redisparser.cpp
                ${path}/impl/redissyncclient.cpp
                ${path}/impl/redisvalue.cpp
                )]]


    #[[    foreach (list_name IN LISTS ${source_files})
            message(${list_name})
        endforeach ()]]

    include_directories(${path})

    #[[ include_directories(${path})]]

    set(${source_files} ${get_files} PARENT_SCOPE)

    link_libraries(boost_program_options-vc140-mt-gd.lib
            boost_date_time-vc140-mt-gd.lib)
    message("redis file: ${${path}}  ${get_files}")
endfunction()


function(get_asio)

endfunction()

function(get_asio_redis)
    include_directories(${CMAKE_SOURCE_DIR}/3rdpart/redis-develop/include)
endfunction()